package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.util.ArrayList;
import entities.*;

public class GetLecturerSubjectPack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private ArrayList<Subject> lstsbj = null;
	private Lecturer lctrr;

	/**
	 * constructor
	 * 
	 * @param lctrr
	 */
	public GetLecturerSubjectPack(Lecturer lctrr) {
		this.op = OpType.GetLecturerSubject;
		this.lctrr = lctrr;
	}

	/**
	 * 
	 * @param subjs
	 *            subjects to be added
	 */
	public void AddSubjects(ArrayList<Subject> subjs) {
		lstsbj = new ArrayList<Subject>();
		lstsbj.addAll(0, subjs);
	}

	/**
	 * 
	 * @return subjects of the lecturer
	 */
	public ArrayList<Subject> getSbj() {
		return lstsbj;
	}

	/**
	 * 
	 * @return the lecturer
	 */
	public Lecturer getLctrr() {
		return lctrr;
	}
}
